﻿<%@ Page Title="" Language="VB" MasterPageFile="~/Devida/Siste.master" AutoEventWireup="false" CodeFile="MantenimientoUnidad.aspx.vb" Inherits="Devida_MantenimientoUnidad" Theme="Yahoo-Ocean"  %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
<%@ Register namespace="AjaxControlToolkit" tagprefix="AjaxControlToolkit" %>
<%@ Register src="ucAlerta.ascx" TagName="Alerta" TagPrefix="uc1" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
<base target="_self" />
<link href="../css/EstilosFrm.css" type="text/css" rel="stylesheet" /> 
   <link href="../css/i_consultas.css" type="text/css" rel="stylesheet" />
   <link href="../css/diseno.css" type="text/css" rel="Stylesheet" />
    <link href="../css/style2.css" type="text/css" rel="stylesheet" />
    <link href="../css/StyleSheet.css" type="text/css" rel="stylesheet" />
    
    <script src="../js/jsForms/js_Consulta.js" type="text/javascript"></script>
    <script src="../js/js_windowpopup.js" type="text/javascript"></script>
    <script language="javascript" src="../Script/PrintScript.js" type="text/javascript"> </script>
<script language="javascript" type="text/javascript">

    function startWord(strFile) {
        var myApp = new ActiveXObject("Word.Application");
        if (myApp != null) {
            myApp.Visible = true;
            myApp.Documents.Open(strFile);
        }
    }
    function Resaltar_On(GridView) {
        if (GridView != null) {
            GridView.originalBgColor = GridView.style.backgroundColor;
            GridView.style.backgroundColor = "#5BADFF";
        }
    }

    function Resaltar_Off(GridView) {
        if (GridView != null) {
            GridView.style.backgroundColor = GridView.originalBgColor;
        }
    }
    
    </script>
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="cph_name" Runat="Server">
<asp:Label id="titulocabecera" runat="server" font-names="arial" Font-Size="17px" ForeColor="white" font-bold="true" text="Mantenimiento Unidad">
</asp:Label>
</asp:Content>

<asp:Content ID="Content4" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
   
    
<table cellpadding="0" cellspacing="0" width="500px">
<tr>
<td style="TEXT-ALIGN:left; padding-left: 10px; padding-top: 3px;  font-size: 12px;
            font-weight: bolder;  font-family: Arial, Helvetica, sans-serif; color: #FFFFFF; background-color:#199A44; ">
<asp:Label ID="labelusuario" runat="server" Text="Datos " Font-Bold="True" Width="500px"></asp:Label>
</td>
</tr>
</table>
<table cellpadding="0" cellspacing="0" width="509px" 
        
        style="border-right-style: solid; border-left-style: solid; border-width: 1px; border-color: #006699">
<tr>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
</tr>

<tr>
            <td align="left">
                <asp:Label id="label7" runat="server" CssClass="label" Text="Unidad" > </asp:Label>
            </td>
            <td align="left" colspan="4">
            <asp:UpdatePanel ID="UpdatePanel1" runat="server">
                                        <ContentTemplate>
                <asp:TextBox ID="txtunidad" runat="server" CssClass="frm_formato_caja" Width="300px"> </asp:TextBox>
                 </ContentTemplate>
                 <Triggers>
     <asp:AsyncPostBackTrigger ControlID="gv_unidad" EventName="SelectedIndexChanged" />
      </Triggers>
                 </asp:UpdatePanel>
            </td>
             <td align="right">
             <asp:ImageButton ID="boton_busca" runat="server" tooltip="Buscar" ImageUrl="~/Imagenes/btn_acclupa.jpg" />
            </td>
        </tr>
<tr>
<td colspan="4">
</td>
 <td align="right" >
                <asp:Label ID="lbl_nuevo" runat="server"  CssClass="label" Text="Nuevo"></asp:Label>
            </td>
 <td style="padding-left:0px; text-align:right">
                <asp:CheckBox ID="chkb" runat="server" CssClass="chk" AutoPostBack="true"   />
            </td>     
</tr>
</table>
<table cellpadding="0" cellspacing="0" width="500px">
<tr >
<td colspan="6" style="TEXT-ALIGN:left; padding-left: 10px; padding-top: 3px;  font-size: 12px;
            font-weight: bolder;  font-family: Arial, Helvetica, sans-serif; color: #FFFFFF; background-color:#199A44; ">
<asp:Label ID="label1" runat="server" Text="Lista de Unidades" Font-Bold="True" Width="500px"></asp:Label>
</td>
</tr>
</table>
<table cellpadding="0" cellspacing="0" width="500px">
<tr>
        
<td>
        
    <div style="border: solid 1px #99aabd; width: 507px; height: 300px; overflow: auto;"align="center">
     <asp:UpdatePanel ID="UpdatePanel2" runat="server">
    <ContentTemplate>
    
          <asp:GridView ID="gv_unidad" runat="server" AutoGenerateColumns="False" 
            CellPadding="0" CssClass="grid" Font-Size="8pt" GridLines="None" Width="507px">
            <RowStyle BackColor="#F7F6F3" Font-Bold="False" ForeColor="#333333" />
            <Columns>               
                <asp:TemplateField ItemStyle-Width ="5px" >
	               <HeaderStyle CssClass="gridHead" HorizontalAlign="Center" />
	                 <ItemStyle CssClass="gridItem" HorizontalAlign="Right" />
	                  <HeaderTemplate>N° </HeaderTemplate>                                     
                                     <ItemTemplate> <%# Container.DataItemIndex + 1 %>
	                                    <asp:HiddenField ID="hfUNIDAD" runat="server" Value='<%# Eval("UNIDAD") %>'  />                                                                              
	                                     </ItemTemplate> 
	             </asp:TemplateField>
                <asp:BoundField DataField="DESCRIPCION" HeaderText="NOMBRE UNIDAD" ItemStyle-HorizontalAlign="Left"  ItemStyle-VerticalAlign="Top"  />
                
                 <asp:CommandField ShowSelectButton="True" Visible="False" />
            </Columns>
            <SelectedRowStyle BackColor="#5BADFF" Font-Bold="True" ForeColor="#333333" />
            <AlternatingRowStyle BackColor="#CEDAF2" ForeColor="#003366" />
            <PagerStyle BackColor="#336699" Font-Bold="True" Font-Names="Verdana" 
                Font-Size="10px" ForeColor="White" HorizontalAlign="left" Wrap="False" />
        </asp:GridView>
        
    </ContentTemplate>
    <Triggers>
     <asp:AsyncPostBackTrigger ControlID="gv_unidad" EventName="SelectedIndexChanged" />
      </Triggers>
    </asp:UpdatePanel>
    </div>

</td>

</tr>
</table>
<table>
<tr>                    
         <td colspan="6">
                  <div  style= "width: 500px;height: 40px;  overflow: auto;" align="center">
                  <table width="500px">
            <tr>
                        
                        <td align="left" class="style66" >
                               <asp:ImageButton ID="btn_guardar" runat="server" ImageUrl="~/Imagenes/btnGuardar.png" style="height: 23px" />
                            </td>
                        <td align="left">
                        <asp:imageButton ID="btn_eliminar" runat="server" imageURL="~/Imagenes/btnEliminar.png" />
                        </td>
                        
                        <td align="right">                                
                        <asp:ImageButton ID="btnsalir" runat="server"  ImageUrl="~/Imagenes/btnSalir.png" />
                        </td>
                    </tr>
                    </table>
            </div> 
            
            </td>
                    
       </tr>
</table>
<uc1:Alerta id="alerta" runat="server"></uc1:Alerta>

</asp:Content>
